<?php

namespace BigVideo\Examples;

/**
 * 单例实例化男女
 * Class AssemblerManager
 */
class AssemblerManager
{
    /**
     * @var PeopleInstance
     */
    private $peopleInstance;

    public function setPeopleInstance(PeopleParam $peopleParam)
    {
        $peopleInstance = new PeopleInstance($peopleParam);
        $this->peopleInstance=$peopleInstance;
    }

    public function execShow()
    {
        $peopleInstance = $this->peopleInstance;
        $peopleInstance->showPeople();
    }


}